package cn.gmcx.lazy.izze.service.impl;

import cn.gmcx.lazy.izze.mapper.TabMapper;
import cn.gmcx.lazy.izze.pojo.Tap;
import cn.gmcx.lazy.izze.service.TabService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TabServiceImpl implements TabService {

    @Autowired
    private TabMapper tabMapper;

    @Override
    public Tap selectById(Integer id) {
        Tap tab = tabMapper.selectById(id);
        return tab;
    }

    @Override
    public List<Tap> selectAll() {
        List<Tap> tab = tabMapper.selectAll();
        return tab;
    }

}
